back soft

ساخت وبلاگ

Vote count: -4

Title says it all please make sure you submit code in C only =) already tried using name char [30] but cant mix it with else/if condititons. Thank You iC.

asked 1 min ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 288 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 22:43

Vote count: 0

I am developing an eclipse plugin with a simple tree view.

I have the problem that in some distributions of eclipse (Luna, Kepler, Mars) the special characters (äöü) in the tree entries are not shown correctly. Just some cryptic letters appear. Strange thing is, that in my installation (mars2) everything is displayed correct. After comparing lots of settings in the different distributione I could not figure out what setting or plug in is influencing this behaviour.

Any hint that brings me further to a solution is appreaciated. Thanks!

asked 1 min ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 325 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 22:43

Vote count: 0

I have a case class like this:

case class Test(i: Int, t: Option[Test])

I would now like to reduce this case class and add all the i's. So for example., if I have an input like this

val x = Test(1, Some(Test(2, Some(Test(3,None)))))

I expect the result to be 6 and here is what I have tried so far:

def all(acc: Int, test: Test): Int = { if (test.t.isDefined) all(acc, test.t.get) else test.i
}

This gives me 3 and I see that I'm missing a minor detail somewhere in the recursion and I'm not able to see where! Any clues?

asked 1 min ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 293 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 22:43

Vote count: 0

I am attempting to compile two files in two child process I create from Node.js' child_process module with .spawn() in parallel, basically looping over sources and spawning two shells immediately.

However only one file will be compiled and it's not always the same. One child_process will retu with error code 2.

Is cl.exe to be known to not being able to run two instances? I am assuming that running it sequentially will fix this problem.

Note: setting or unsetting /MP flag doesn't change this behaviour.

asked 37 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 358 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 21:42

Vote count: 0

I have a Xamarin.Forms project where I am using Xlabs to implement checkboxes. I can get them to appear which is great. I want to be able to do this:

void OnSelection(object sender, SelectedItemChangedEventArgs e) { if (e.SelectedItem == null) retu; var selectedStudent = ((ListView)sender).SelectedItem as Student; // set time of student checkin }

But with my check boxes. I want to be able to handle checkbox selection as it happens. From what I've seen online I can set a new boolean property of my student object selected, but that simply doesn't work with my project. Here is my current approach:

 void OnSelection(object sender, EventArgs e) { CheckBox isCheckedOrNot = (CheckBox)sender; var name = isCheckedOrNot.DefaultText; //not sure what to do here? var student = ((CheckBox)sender)... // set time of student checkin }
asked 32 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 287 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 21:42

Vote count: -1

I have a canvas graph that I have wrapped in a Vue component. Now I want to make it responsive, but adding canvas { width: 100%; } makes it look really pixelated. So how do I do proper dynamic resizing? CSS or Javascript, either is fine.

asked 29 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 282 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 21:42

Vote count: 0

I'm having very different behaviors with nested contenteditable="false" elements within a parent contenteditable="true:

 <pre> <div contenteditable="true"> <span>I'm supposed to be editable</span> <p contenteditable="false">I'm NOT supposed to be editable.<br>Neither should I.</p> <span contenteditable="false">I'm NOT supposed to be editable.</span> </div> </pre>

This fiddle exemplifies how two elements that should not be editable are in fact editable with Inteet Explorer 11 but not Google Chrome. What gives?

I have seen some people applying a strange workaround by setting them to "true", which indeed works for IE, but has the opposite effect on Google Chrome (as it should).

asked 29 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 189 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 20:41

Vote count: 0

Blockquote

I have purchased several licenses back in December 2013. Now, I have upgraded the ImageResizer and need to generate a key that I can use in my web.config. Previously I was using drm files and everything worked as it should. How do I generate this key or is there any alteative?

asked 26 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 294 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 20:41

Vote count: 0

So I was trying to convert pixel to spatial coordinates when i found the package image_geometry. So i decided i would try to use it, i initialized it, and called the desired function, taken fro the API. Here's what i did

import image_geometry
from image_geometry import PinholeCameraModel
self.img_geo = PinholeCameraModel()
(r_x,r_y,r_z) = self.img_geo.projectPixelTo3dRay((359,285))
print(r_x)

Obviously the self.img_geo is in my init function and then later on i use the projection function, and then get that error. Any ideas whats wrong?

asked 24 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 270 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 20:41

Vote count: 0

Severity Code Description Project File Line Suppression State Detail Description Waing IDE0006 Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled. HelloWorld 1 Active To see what caused the issue, please try below.

  1. Close Visual Studio
  2. Open a Visual Studio Developer Command Prompt
  3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true)
  4. Delete .vs directory/.suo file
  5. Restart VS from the command prompt you set the environment varaible (devenv)
  6. Open the solution
  7. Check 'C:Usersnitesh dandekarAppDataLocalTempHelloWorld_*.designtime.log' and look for the failed tasks (FAILED)
asked 52 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 847 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 19:39

Vote count: 0

I have an entity which has some number of associated entities that I must show to the user in row form each, with other data such as the associated entity's name, cost, etc. I need the user to be able to modify the quantity.

I'm displaying the table in twig, and have a FormType that shows its associated entities in a CollectionType, but cannot for the life of me figure out how to do something like this:

{{ form_row(form.child[ entity.getId ]) }}

So that the quantity edit forms can appear in their corresponding table cell and not just sit on the top of the page. Should I render the entire table using a form? In that case, I have the difficulty of then integrating additional forms e.g. delete, and also I have just read that this is discouraged.

At the same time, Twig has next to no array support, so my other solution, which would be to store each associated form in an array indexed by ID, can't be made to work either.

asked 39 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 346 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 19:39

Vote count: 0

I am using LinkIt Smart 7688 - an OpenWRT device for IoT. It supports station mode WiFi i.e. it can connect to another WiFi AP and one can use inteet. I am trying to retrieve a list of mobile phones that are connected to the wireless lan. I am trying to list all the clients but my Android phone is not showing up.

I used nmap with the command

nmap -sP 192.168.0.1-254

and i get this

Starting Nmap 6.47 ( http://nmap.org ) at 2016-06-20 17:44 IST
Nmap scan report for 192.168.0.1
Host is up (0.0049s latency).
MAC Address: F0:7D:68:B8:BB:D0 (D-Link)
Nmap scan report for 192.168.0.6
Host is up (0.0038s latency).
MAC Address: 6C:62:6D:4E:87:28 (Micro-Star INT'L CO.)
Nmap scan report for 192.168.0.12
Host is up (-0.089s latency).
MAC Address: FC:AA:14:B8:12:91 (Giga-byte Technology Co.)
Nmap scan report for 192.168.0.111
Host is up (-0.095s latency).
MAC Address: 40:8D:5C:49:FA:24 (Unknown)

Is the problem related to my phone or are there other tools to do this?

asked 33 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 291 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 19:39

Vote count: 0

I already looked into several example on how to remove the key "data" in response, but i cannot fix it.

I tried to use the callback provided by dingo

retu $this->collection($users, new UserTransformer, function ($resource, $fractal) { $fractal->setSerializer(new ArraySerializer);
});

In change the "$fractal->setSerializer(new CustomSerializer);" to "$fractal->setSerializer(new ArraySerializer);" since I dont have CustomSerializer(And how to make this custom serializer?) based on the fractal documentation array serializer but the out put has the key "data".

I also tested the fractal library in different project and implementing the ArraySerializer as the Serializer, and it works.

What am I missing in the setup of dingo-fractal?

Thanks.

asked 52 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 314 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 18:11

Vote count: 0

I'm making a website using Google Maps API v3. Markers are added into the map with attributes being taken from marker data

Marker Data set

var markerData = [ "lat": '21.0236081', "long": '105.789596', "icon": 'http://i.imgur.com/0Js6A7w.gif', "description": 'blah blah'
];

Pin marker onto map

for (var i = 0; i < markerData.length; i++) { var data = markerData[i]; var myLatLng = new google.maps.LatLng(data.lat, data.long); var image = "'" + data.icon + "'"; var marker = new google.maps.Marker({ position: myLatLng, icon: image }); (function (marker, data) { google.maps.event.addListener(marker, "click", function (e) { infoWindow.setContent(data.description); infoWindow.open(map, marker); }); })(marker, data); markerList.push(marker);
}

I couldn't get the link to put into 'icon' attributes of my markers. Can someone give me some advice?

Thank you all!!

asked 51 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 323 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 18:11

Vote count: 0

I am trying to export function within route file. Here is my code in user.js

var express = require('express');
var router = express.Router();
router.post("/test", function (req, res, next) { res.send("success");
});
var funDef=function(){
console.log("export a function")
}
moudle.exports=router;

How can I export or call funDef in another js file. I tried the following way but it is not working

var readFun= require("./user.js");
readFun.funDef();

Can anyone guide me?

asked 30 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 299 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 18:11

Vote count: 0

I have a compiled-to-rpm opscenter package that dumps the files to /opt/mypckage

everything is okay when I execute /opt/mypackage/opscenter/bin/opscenter -f it will tu up the opscenter web which includes http.log on the log directory

I have created a start-script which is tested from tarball

#!/bin/sh
echo "exec 'sudo /etc/init.d/opscenterd start'"
exec sudo /etc/init.d/opscenterd start

wierd thing is- yes it will start the opscenter service using the script above but the url is not running using port 8888 and no http.log generated. is there any way I can tweak this on?

asked 1 min ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 304 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 16:44

Vote count: 0

I am currently leaing Javascript and I am at the most basic level someone could be.

I wrote a simple script for generating a referral link for envato market.

Its a very simple function which gets the profile url and useame and a onclick is used to combine these variables and put the ?ref= in there.

<!DOCTYPE HTML>
<html> <head> <title>JS</title> </head> <body> <script> function refferalGen() { var userName = document.getElementById("useame").value; var profUrl = document.getElementById("profurl").value; var result = (profUrl) + "?ref=" + (userName); document.getElementById("resulttxt").value = result; } </script> <input style="width:250px" type="text" id="useame" placeholder="Useame" /><br> <input style="width:250px" type="text" id="profurl" placeholder="Profile Url" /><br> <input style="width:250px" type="text" id="resulttxt" placeholder="Result Will be printed here" /><br> <input style="width:250px" type="button" name="clickbait" onclick="refferalGen()" value="Clickbait !" /> </body>
</html>

I want it to be so that I dont have to use the button to get the result Instead it is real-time.

When i type in the useame textfield it automatically updates the result field instantly and same goes for the profile url field.

Thanks to anyone who replies.

asked 30 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 304 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 16:44

Vote count: 0

Simple question, probably been asked a million times but I've searched and am no closer to getting this to work.

I have a PHP script within the UserFrosting framework that serves a file to the user via their browser. I would like the file to open in their browser if they select 'Open' insteand of download.

Problem is, the only things that are opening properly are text files. Anything else (PDFs and JPGs tested so far) are just opening as a page of ASCII/garbled code instead of being interpreted as a PDF or an image.

Here's the code I'm using:

header('Content-Type: '. $mime);
header('Content-Length: ' . filesize($diskname));
header('Content-Disposition: inline; filename=' . $savename);
retu readfile($diskname);

$mime is the Mime type of the file set via a function, so could be application/pdf or image/jpeg for the files I'm trying to view so far.

Does anyone have any ideas why the files aren't opening properly?

asked 28 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 293 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 16:44

Vote count: 0

Is there any way to boost them up? it is really annoying.

I used "transform: translateZ(0);" for chrome and firefox but it doesn't seem to work on safari.

asked 11 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 282 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 15:41

Vote count: 0

This is my PHP-Code:

<?php

include("dbconnect.php");

$abfrage = "SELECT Name, Adresse, Telefon, Nr FROM tbl_test1 WHERE 1"; $ergebnis = mysqli_query($db, $abfrage);

?> I want to show the Value of $ergebnis but it says that it could not be converted to sting. Iam a totaly beginner in PHP so please help me...

asked 11 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 385 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 15:41